package com.just.bz_back.controller.user;

import com.just.bz_back.model.dto.JsonData;
import com.just.bz_back.service.TypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : baibaiwucahng
 * @date : 2019/8/31  14:54
 */
@RestController
@RequestMapping("/api/v1/user/type")
public class TypeController {

    @Autowired
    private TypeService typeService;

    @RequestMapping(value = "/list",method = RequestMethod.POST)
    public JsonData TypeList()
    {

            return JsonData.buildSuccess(typeService.getAll(),0);
    }



}
